package com.andy.qi.service;

import java.util.ArrayList;
import java.util.List;

import com.andy.qi.domain.nogame.HuInfo;
import com.andy.qi.domain.nogame.NoAction;
import com.andy.qi.domain.nogame.NoSeat;
import com.andy.qi.domain.room.Seat;

public class UserRT {

    public String userId;
    public List<Integer> pengs;
    public List<Integer> wangangs;
    public List<Integer> diangangs;
    public List<Integer> angangs;
    public int score;
    public List<Integer> holds;
    public int totalscore;
    public List<HuInfo> huinfo;
    public List<NoAction> actions;
    public boolean qingyise;
    public boolean menqing;
    public boolean jingouhu;
    private int numofgen;
    private int fan;
    private String pattern;
    private boolean isganghu;
    private boolean zhongzhang;
    private boolean haidihu;
    private boolean tianhu;
    private boolean dihu;
    private int huorder;

    public UserRT(Seat rs, NoSeat sd, int huorder) {
        userId = sd.userId;
        actions = new ArrayList<>();
        pengs = sd.pengs;
        wangangs = sd.wangangs;
        diangangs = sd.diangangs;
        angangs = sd.angangs;
        holds = sd.holds;
        score = sd.score;
        totalscore = rs.score;
        qingyise = sd.qingyise;
        menqing = sd.isMenQing;
        jingouhu = sd.isJinGouHu;
        huinfo = sd.huInfo;          
        
        numofgen = sd.numofgen;
        fan = sd.fan;
        pattern = sd.pattern;
        isganghu = sd.isGangHu;
        zhongzhang = sd.isZhongZhang;
        haidihu = sd.isHaiDiHu;
        tianhu = sd.isTianHu;
        dihu = sd.isDiHu;
        this.huorder = huorder;//game.hupaiList.indexOf(i);
    }

}
